<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich">
      <f:loadBundle basename="oo.messages" var="msgs"/>
      
  <head><title>Swiadectwa</title></head>
  <body>
<center>

<h:form>
<!-- <h:graphicImage value="/im/001.gif"/> --> 
	<span style="margin:20px;">
	<h:commandLink action="#{zgloszenie.dd}">
		<h:outputText value="#{msgs.czolozakladka1}"/>
	</h:commandLink>
	</span>
	<span style="margin:20px;">
	<h:commandLink action="#{zgloszenie.dd1}">
		<h:outputText value="#{msgs.czolozakladka2}"/>
	</h:commandLink>
	</span>
	<span style="margin:20px;">
	<h:commandLink action="#{zgloszenie.dd2}">
		<h:outputText value="#{msgs.czolozakladka3}"/>
	</h:commandLink>
	</span>
</h:form>

<!-- <rich:tabPanel switchType="client">
        <rich:tab width="false" label="#{msgs.czolozakladka1}">
            #{msgs.czolozakladka1opis}
        </rich:tab>
        <rich:tab width="true" label="#{msgs.czolozakladka2}">
            #{msgs.czolozakladka2opis}
        </rich:tab>
        <rich:tab width="true" label="#{msgs.czolozakladka3}">
            #{msgs.czolozakladka3opis}
        </rich:tab>
    </rich:tabPanel> -->
</center><br/>
 <rich:separator height="20" lineType="double"/><br/>
<center>
<f:view >
	<a4j:form>
		<rich:panel>
        <f:facet name="header"><h:outputText value="Login"/></f:facet>
        <h:panelGrid columns="3" title="user" rowClasses="s1row" columnClasses="wfcol1,wfcol2,wfcol3">
        	<h:outputText value="#{msgs.loginlbltexthaslo}" />
			<h:inputText value="#{rejestracja.haslo}" id="haslo" required="true"/>
			<rich:message for="haslo" />
			<h:outputText value="#{msgs.loginlbltextemail}" />
			<h:inputText value="#{rejestracja.email}" id="email" required="true"/>
			<rich:message for="email" />
				<h:commandButton id="loguj" action="#{rejestracja.loguj}" value="#{msgs.loginbtnloguj}" />
				<h:commandButton id="loguj2" action="#{rejestracja.addd}" value="#{msgs.loginbtnloguj}..." />
				<h:commandButton id="loguj1" action="#{dodawanie.add}" value="+" />
			<h:commandButton  id="rejestruj_"  action="#{rejestracja.ss}" value="#{msgs.loginbtnnieposiadam}" />
		</h:panelGrid>
    	</rich:panel>
	</a4j:form>
</f:view>
    <a4j:jsFunction name="ajaxSubmit" oncomplete="#{rich:component('panel1')}.show()" 
reRender="panel1" />
    <rich:modalPanel id="panel1" width="350" height="100"
 showWhenRendered="#{rejestracja.mp.wynik}">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="#{rejestracja.mp.naglowek}"></h:outputText>
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
            	<h:commandButton   id="hidelink1" value="X"/>
                <rich:componentControl for="panel1" attachTo="hidelink1" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
        <h:outputText value="#{rejestracja.mp.tresc}"></h:outputText>
    </rich:modalPanel>
</center>
     </body>
</html>

